<extend name="Public:base" />
<block name="title">
<title>用户登陆 -PlayWeb</title>
</block>
<block name="res">
<script>
 
function login(){
	
  
   $('#user-login').ajaxForm(function(d) {   
   
   if(d.status){
	   
	   u.msg(d.info,4,"index.php");
	   
   }else{
	   
	   u.msg(d.info,5);
	   
   }
 
	  
  });  
	
}



</script>


</block>
<block name="container">
<div  style="">
 <form class="form-horizontal" method="post" action="{:U('User/on_login')}" id="user-login">
 <div class="control-group"><label class="control-label">用户名</label>
 <div class="controls"><input type="text" name="username"></div>
 </div>
 <div class="control-group"><label class="control-label">密码</label>
 <div class="controls"><input type="password" name="password"></div>
 </div>
 <div class="control-group">
 <div class="controls">
 <button type="submit"  class="btn  btn btn-success" onclick="login()">登陆</button>
 </div>
 </div>
</form>

</div>
</block>